// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/css/header.css'
import './assets/css/footer.css'
import './assets/css/main.css'
import './assets/css/global.css'
import './assets/css/shop.css'
import './assets/css/user.css'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.prototype.$imgPrefix = "http://localhost:8080/"

// 导入axios
import axios from './util/request'
// 将axios设置为为vue的原属性
Vue.prototype.$axios = axios

Vue.config.productionTip = false

/* eslint-disable no-new */
let vue = new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

window.vue = vue